<template>
	<view class="parserBox">
		<view :hidden="loading">
			<Parser :html="datas" @linkpress="linkpress" show-with-animation lazy-load></Parser>
		</view>
		<Skeleton v-if="loading" :row="5"></Skeleton>
	</view>
</template>

<script>
import Parser from "@/components/Parser/index"
export default {
	components: {
		Parser
	},
	props: {
		datas: String,
	},
	data() {
		return {
			loading : true
		}
	},
	mounted() {
		setTimeout(() => {
			this.loading = false
		}, 500)
	},
	methods: {
		linkpress(res) {
			this.$goto(res.href)
		}
	}
}
</script>

<style lang='scss'>
	.parserBox{
		background: #ffffff;
	}
</style>